<%@ page import="java.util.List" %>
<%@ page import="com.ptu.entity.Duty" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%--
  Created by IntelliJ IDEA.
  User: 17614
  Date: 2021/4/2
  Time: 7:22
  To change this dutyate use File | Settings | File dutytes.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <base href="<%=request.getContextPath()+"/"%>">
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/select.css" rel="stylesheet" type="text/css" />

    <script type="/text/javascript" src="js/jquery.js"></script>

    <script type="/text/javascript" src="js/jquery.idTabs.min.js"></script>
    <script type="/text/javascript" src="js/select-ui.min.js"></script>
    <script type="/text/javascript" src="editor/kindeditor.js"></script>

    <script type="text/javascript">
        $(document).ready(function(e) {
            $(".select1").uedSelect({
                width : 200
            });

        });
    </script>
    <script type="text/javascript">
        $(document).ready(function(){
            $(".click").click(function(){
                $(".tip").fadeIn(200);
            });

            $(".tiptop a").click(function(){
                $(".tip").fadeOut(200);
            });

            $(".sure").click(function(){
                $(".tip").fadeOut(100);
            });

            $(".cancel").click(function(){
                $(".tip").fadeOut(100);
            });

        });
    </script>

</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">考勤管理</a></li>
        <li><a href="#">我的考勤</a></li>
    </ul>
</div>

<div class="rightinfo">


    <div class="formtitle1"><span>我的考勤</span></div>

    <table class="tablelist">
        <thead>
        <tr>
            <th>
                <input name="" type="checkbox" value="" checked="checked" />
            </th>
            <th>出勤日期</th>
            <th>签到时间</th>
            <th>签退时间</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${requestScope.dutyAll.list}" var="list">
            <c:set var="now" value="${list.dtDate}" />
            <tr>
                <td>
                    <input name="" type="checkbox" value="" />
                </td>
                <td><fmt:formatDate  value="${now}" pattern="yyyy-MM-dd" /></td>
                <td>${list.signinTime}</td>
                <td>${list.signoutTime}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>

    <div class="pagin">
        <div class="message">共<i class="blue">${requestScope.dutyAll.total}</i>条记录，当前显示第&nbsp;<i class="blue">${requestScope.dutyAll.pageNumber}&nbsp;</i>页</div>
        <ul class="paginList">
            <li class="paginItem">
                <a href="ptu/DutyServlet?method=getMyDuty&pageNumber=${requestScope.dutyAll.pageNumber-1 }&pageSize=${requestScope.dutyAll.pageSize}"
                        <c:if test="${ requestScope.dutyAll.pageNumber<=1 }">  onclick="javascript:return false;" </c:if> >
                    <span class="pagepre"></span>
                </a>
            </li>
            <li class="paginItem">
                <a href="ptu/DutyServlet?method=getMyDuty&pageNumber=${requestScope.dutyAll.pageNumber+1 }&pageSize=${requestScope.dutyAll.pageSize}"
                        <c:if test="${ requestScope.dutyAll.pageNumber*requestScope.dutyAll.pageSize>=requestScope.dutyAll.total}">  onclick="javascript:return false;" </c:if> >
                    <span class="pagenxt"></span>
                </a>
            </li>



<%--            <li class="paginItem"><a href="ptu/DutyServlet?method=getMyDuty&currIndex=<c:if test="${(index-1)>0}"><c:set var="last" scope="request" value="${index-1}"/>${last}</c:if>${index}"><span class="pagepre"></span></a></li>--%>
<%--            <li class="paginItdem"><a href="javascript:;">1</a></li>--%>
<%--            <li class="paginItem current"><a href="javascript:;">2</a></li>--%>
<%--            <li class="paginItem"><a href="javascript:;">3</a></li>--%>
<%--            <li class="paginItem"><a href="javascript:;">4</a></li>--%>
<%--            <li class="paginItem"><a href="javascript:;">5</a></li>--%>
<%--            <li class="paginItem more"><a href="javascript:;">...</a></li>--%>
<%--            <li class="paginItem"><a href="javascript:;">10</a></li>--%>
<%--            <li class="paginItem"><a href="ptu/DutyServlet?method=getMyDuty&currIndex=<c:if test="${(index+1)<=pageNum}"><c:set var="next" scope="request" value="${requestScope.currIndex+1}"/><c:set var="next" scope="request" value="${index+1}"/>${next}</c:if>${index}"><span class="pagenxt"></span></a></li>--%>
        </ul>
    </div>
    <script type="text/javascript">
        function pageManager() {

        }
    </script>


    <div class="tip">
        <div class="tiptop"><span>提示信息</span>
            <a></a>
        </div>

        <div class="tipinfo">
            <span><img src="images/ticon.png" /></span>
            <div class="tipright">
                <p>是否确认对信息的修改 ？</p>
                <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
            </div>
        </div>

        <div class="tipbtn">
            <input name="" type="button" class="sure" value="确定" />&nbsp;
            <input name="" type="button" class="cancel" value="取消" />
        </div>

    </div>

</div>

<script type="text/javascript">
    $('.tablelist tbody tr:odd').addClass('odd');
</script>

</body>

</html>

</body>
</html>
